from web_ui.frame.pages.base_page import BasePage
from selenium.webdriver.common.by import By


class HomePage(BasePage):

    def click_mall_manage(self):
        # 点击【商场管理】菜单
        self.do_click(By.XPATH, "//*[text()='商场管理']")

        return self

    def click_goods_category(self):
        # 点击【商品类目】菜单
        self.do_click(By.XPATH, "//*[text()='商品类目']")

        from web_ui.frame.pages.mall_manage.list_page import ListPage
        return ListPage(self.driver)
